
//
//  DFForumController.m
//  DFForum
//
//  Created by lanou on 15/10/23.
//  Copyright © 2015年 lanou. All rights reserved.
//
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#import "DFForumController.h"
#import "HotPostTableViewController.h"

@interface DFForumController ()
@property (nonatomic, strong) UIScrollView *forumScrView;

@end

@implementation DFForumController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self addForumScrollView];
    HotPostTableViewController *HotPostVC = [[HotPostTableViewController alloc] init];
    [self addChildViewController:HotPostVC];
    HotPostVC.view.frame = CGRectMake(0, 64, kScreenWidth, kScreenHeight);
    [_forumScrView addSubview:HotPostVC.view];
    
}
//给论坛控制器添加scrollView
- (void)addForumScrollView
{
    _forumScrView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 64, kScreenWidth, kScreenHeight)];
    _forumScrView.contentSize = CGSizeMake(kScreenWidth * 2, kScreenHeight);
    [self.view addSubview:_forumScrView];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}



@end
